package me.sapling.view;

import me.sapling.model.PageContent;

/**
 * @author sapling
 */
public class FIFOPanel extends AbstractPanel {


	public FIFOPanel(PageContent[] pages, PageContent[] contents) {
		super(pages, contents);
	}

	@Override
	protected void arithmetic(int i) {
		int j;
		contentOut[i] = contentRouter[i][0];
		for (j = 0; j < contentRouter[i].length - 1; j++) {
			contentRouter[i][j] = contentRouter[i][j + 1];
		}
		contentRouter[i][j] = contents[i];
	}

}
